#ifndef CUSTOMWIDGETCOLLECTION_H
#define CUSTOMWIDGETCOLLECTION_H

#include <QObject>
#include <QDesignerCustomWidgetCollectionInterface>

class CustomWidgetCollection : public QObject, public QDesignerCustomWidgetCollectionInterface
{
    Q_OBJECT
    Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.CustomWidgetCollection")

public:
    CustomWidgetCollection(QObject *parent = nullptr);
    QList<QDesignerCustomWidgetInterface *> customWidgets() const override;

private:
    QList<QDesignerCustomWidgetInterface *> m_widgets;
};

#endif // CUSTOMWIDGETCOLLECTION_H
